<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>6_元素溢出</title>
    <style>
        div{
            border: 10px solid #00f;
            /*想要溢出必须先预先设置div的大小,否则会被内容撑大,不会溢出*/
            width: 300px;
            height: 1800px;
            overflow: visible; /* 溢出可见*/
            overflow: hidden; /* 溢出隐藏 多余的部分直接截掉*/
            overflow: scroll; /* 溢出显示拖拽*/
            overflow: auto;/* 哪个方向溢出就自动显示拖拽条*/
        }
        img{
            width: 200px;
            vertical-align: baseline;
            vertical-align: bottom;
            vertical-align: top;
            vertical-align: middle;
        }
    </style>
</head>
<body>
abyj<img src="../day01/1.png">国圈<img src="../day01/1.png">
<div>
    <img src="../day01/1.png">
    <img src="../day01/1.png">
    <img src="../day01/1.png">
    <img src="../day01/1.png">
</div>
</body>
</html>